package cn.edu.scau.cmi.houzhicong.abstractFactoryPattern.factory;

import cn.edu.scau.cmi.houzhicong.abstractFactoryPattern.domain.*;
import javafx.scene.image.Image;

public class PICCFactory extends AbstractFactory{

    @Override
    public Insurance createBodyInjury(String name, String stuNum, Image image) {
        return new PICCBodyInjury( name,  stuNum,  image) ;
    }

    @Override
    public Insurance createCasualty(String name, String stuNum, Image image) {
        return new PICCCasualty( name,  stuNum,  image);
    }

    @Override
    public Insurance createCarDamage(String name, String stuNum, Image image) {
        return new PICCCarDamage( name,  stuNum,  image);
    }

    @Override
    public Insurance createMultipleAccidents(String name, String stuNum, Image image) {
        return new PICCMultipleAccidents( name,  stuNum,  image);
    }
}
